package edu.gyu.myshop.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author ls
 * @since 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Id", type = IdType.AUTO)
    private Integer id;

    @TableField("orderId")
    private Integer orderid;

    @TableField("userId")
    private Integer userid;

    @TableField("goodsId")
    private Integer goodsid;


    @TableField(exist = false)
    private String productName;
    @TableField(exist = false)
    private String status; // 新增的订单状态属性


    @TableField(exist = false)
    private String address; // 新增的收货地址

    @TableField(exist = false)
    private String phone; // 新增的收货人电话

    @TableField(exist = false)
    private String username; // 新增的收货人姓名

    @TableField(exist = false)
    private String picture; // 新增的商品图片

    @TableField(exist = false)
    private String shippingCompany; // 新增的物流公司
    @TableField(exist = false)
    private String trackingNumber; // 新增的快递单号

    private Integer buyNum;

    private BigDecimal price;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
